# SPDX-License-Identifier: GPL-2.0+

dtb-$(CONFIG_ARCH_MTMIPS) += \
	gardena-smart-gateway-mt7688.dtb \
	linkit-smart-7688.dtb
dtb-$(CONFIG_TARGET_AP121) += ap121.dtb
dtb-$(CONFIG_TARGET_AP143) += ap143.dtb
dtb-$(CONFIG_TARGET_AP152) += ap152.dtb
dtb-$(CONFIG_TARGET_BOSTON) += img,boston.dtb
dtb-$(CONFIG_TARGET_MALTA) += mti,malta.dtb
dtb-$(CONFIG_TARGET_PIC32MZDASK) += pic32mzda_sk.dtb
dtb-$(CONFIG_TARGET_XILFPGA) += nexys4ddr.dtb
dtb-$(CONFIG_BOARD_COMTREND_AR5315U) += comtrend,ar-5315u.dtb
dtb-$(CONFIG_BOARD_COMTREND_AR5387UN) += comtrend,ar-5387un.dtb
dtb-$(CONFIG_BOARD_COMTREND_CT5361) += comtrend,ct-5361.dtb
dtb-$(CONFIG_BOARD_COMTREND_VR3032U) += comtrend,vr-3032u.dtb
dtb-$(CONFIG_BOARD_COMTREND_WAP5813N) += comtrend,wap-5813n.dtb
dtb-$(CONFIG_BOARD_HUAWEI_HG556A) += huawei,hg556a.dtb
dtb-$(CONFIG_BOARD_NETGEAR_CG3100D) += netgear,cg3100d.dtb
dtb-$(CONFIG_BOARD_NETGEAR_DGND3700V2) += netgear,dgnd3700v2.dtb
dtb-$(CONFIG_BOARD_SAGEM_FAST1704) += sagem,f@st1704.dtb
dtb-$(CONFIG_BOARD_TPLINK_WDR4300) += tplink_wdr4300.dtb
dtb-$(CONFIG_TARGET_JZ4780_CI20) += ci20.dtb
dtb-$(CONFIG_SOC_BMIPS_BCM6358) += sfr,nb4-ser.dtb
dtb-$(CONFIG_SOC_BMIPS_BCM6838) += brcm,bcm968380gerg.dtb
dtb-$(CONFIG_SOC_LUTON) += luton_pcb090.dtb luton_pcb091.dtb
dtb-$(CONFIG_SOC_OCELOT) += ocelot_pcb120.dtb ocelot_pcb123.dtb
dtb-$(CONFIG_SOC_JR2) += jr2_pcb110.dtb jr2_pcb111.dtb serval2_pcb112.dtb
dtb-$(CONFIG_SOC_SERVALT) += servalt_pcb116.dtb
dtb-$(CONFIG_SOC_SERVAL) += serval_pcb105.dtb serval_pcb106.dtb
dtb-$(CONFIG_TARGET_LS1B_MB_V20) += ls1b_mb_v20.dtb
dtb-$(CONFIG_TARGET_LS1B_DEV) += ls1b_dev.dtb
dtb-$(CONFIG_TARGET_LS1B_JD_CORE) += ls1b_jd_core.dtb
dtb-$(CONFIG_TARGET_LS1B_LSGD1B20_BPD1_V10) += ls1b_lsgd1b20_bpd1_v10.dtb
dtb-$(CONFIG_TARGET_LS2K1000_ART_PAD) += ls2k1000_art_pad.dtb
dtb-$(CONFIG_TARGET_LS2K1000_COM) += ls2k1000_com.dtb
dtb-$(CONFIG_TARGET_LS2K1000_COM_C) += ls2k1000_com_c.dtb
dtb-$(CONFIG_TARGET_LS2K1000_COM_GB) += ls2k1000_com_gb.dtb
dtb-$(CONFIG_TARGET_LS2K1000_COME) += ls2k1000_come.dtb
dtb-$(CONFIG_TARGET_LS2K1000_CORE_BOARD_PRE) += ls2k1000_core_board_pre.dtb
dtb-$(CONFIG_TARGET_LS2K1000_JINLONG_MB_V1_0) += ls2k1000_jinlong_mb_v1.1.dtb
dtb-$(CONFIG_TARGET_LS2K1000_JINLONG_MB_V1_1) += ls2k1000_jinlong_mb_v1.1.dtb
dtb-$(CONFIG_TARGET_LS2K1000_JINLONG_MB_V1_2) += ls2k1000_jinlong_mb_v1.2.dtb
dtb-$(CONFIG_TARGET_LS2K1000_JINLONG_MB_V1_3) += ls2k1000_jinlong_mb_v1.3.dtb
dtb-$(CONFIG_TARGET_LS2K1000_JL_LSGD2K10_BPC1) += ls2k1000_jl_lsgd2k10_bpc1.dtb
dtb-$(CONFIG_TARGET_LS2K1000_IAP_M) += ls2k1000_iap_m.dtb
dtb-$(CONFIG_TARGET_LS2K1000_ICTRL) += ls2k1000_ictrl.dtb
dtb-$(CONFIG_TARGET_LS2K1000_IPC) += ls2k1000_ipc.dtb
dtb-$(CONFIG_TARGET_LS2K1000_IPC_MB_V2_0) += ls2k1000_ipc_mb_v2.0.dtb
dtb-$(CONFIG_TARGET_LS2K1000_LG_LOONGSON_AA0) += ls2k1000_lg_loongson_aa0.dtb
dtb-$(CONFIG_TARGET_LS2K1000_LXH_LSM510) += ls2k1000_lxh_lsm510.dtb
dtb-$(CONFIG_TARGET_LS2K1000_NTPSRV_V5_0) += ls2k1000_ntpsrv_v5.0.dtb
dtb-$(CONFIG_TARGET_LS2K1000_NANWANG_GSE7122) += ls2k1000_nanwang_gse7122.dtb
dtb-$(CONFIG_TARGET_LS2K1000_PAI) += ls2k1000_pai.dtb
dtb-$(CONFIG_TARGET_LS2K1000_PC_EVB) += ls2k1000_pc_evb.dtb
dtb-$(CONFIG_TARGET_LS2K1000_PCM_2K01_MB) += ls2k1000_pcm_2k01_mb.dtb
dtb-$(CONFIG_TARGET_LS2K1000_RUIHUA_V10) += ls2k1000_ruihua_v10.dtb
dtb-$(CONFIG_TARGET_LS2K1000_SAKWAY_COME) += ls2k1000_sakway_come.dtb
dtb-$(CONFIG_TARGET_LS2K1000_S200A08) += ls2k1000_s200a08.dtb
dtb-$(CONFIG_TARGET_LS2K1000_VP63002) += ls2k1000_vp63002.dtb
dtb-$(CONFIG_TARGET_LS2K1000_VPX6U_YZ) += ls2k1000_vpx6u_yz.dtb
dtb-$(CONFIG_TARGET_LS2K1000_ZX5106) += ls2k1000_zx5106.dtb
dtb-$(CONFIG_TARGET_LS2K1000_ZX5108) += ls2k1000_zx5108.dtb
dtb-$(CONFIG_TARGET_LS2K1000_ZXP910) += ls2k1000_zxp910.dtb
dtb-$(CONFIG_TARGET_LS2K1000_H_RTU_MCU) += ls2k1000_h_rtu_mcu.dtb
dtb-$(CONFIG_LS2K_USED_LINUX3_10) += ls2k1000_core_linux-3.10.dtb ls2k1000_linux-3.10.dtb

ifdef CONFIG_MULTI_DTB_FIT
dtb-$(CONFIG_CPU_LOONGSON2K1000) += ls2k1000_linux-3.10.dtb
endif

dtb-$(CONFIG_TARGET_LS3A4000_7A1000_EVB) += ls3a4000_7a1000_evb.dtb
dtb-$(CONFIG_TARGET_LS3A4000_7A1000_ML4A_MB) += ls3a4000_7a1000_ml4a_mb.dtb
dtb-$(CONFIG_TARGET_LS3A4000_7A1000_RB_G605) += ls3a4000_7a1000_rb_g605.dtb
dtb-$(CONFIG_TARGET_LS3A4000_7A1000_LT_D4000_V102) += ls3a4000_7a1000_lt_d4000_v102.dtb

dtb-$(CONFIG_TARGET_LS3A3000_7A1000_EVB) += ls3a3000_7a1000_evb.dtb
dtb-$(CONFIG_TARGET_LS3A3000_7A1000_LS306MB) += ls3a3000_7a1000_ls306mb.dtb

dtb-$(CONFIG_TARGET_LS2K500_HUOLONG_MB_V1_0_MIPS) += ls2k500_huolong_mb_v1.0.dtb

dtb-$(CONFIG_TARGET_LS2H_DEV_REV2_1) += ls2h_dev_rev2.1.dtb

targets += $(dtb-y)

# Add any required device tree compiler flags here
DTC_FLAGS +=

PHONY += dtbs
dtbs: $(addprefix $(obj)/, $(dtb-y))
	@:

clean-files := *.dtb
